package cn.richard.home.view.adapter

import cn.richard.home.R
import cn.richard.home.api.data.Picture
import cn.richard.home.databinding.ItemPicListBinding
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 *
 * @ProjectName: PicApp
 * @Author: wuzhiguo@aiforward.com
 * @CreateDate: 2021/9/2 4:55 下午
 * @Description:
 */
class PicListAdapter :
    BaseQuickAdapter<Picture, BaseDataBindingHolder<ItemPicListBinding>>(R.layout.item_pic_list),
    LoadMoreModule{


    override fun convert(holder: BaseDataBindingHolder<ItemPicListBinding>, item: Picture) {
        holder.dataBinding?.model = item
    }
}